package com.ruoyi.business.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息对象 biz_business_message
 * 
 * @author ruoyi
 */
public class BusinessMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息ID */
    @Excel(name = "消息ID", cellType = ColumnType.NUMERIC)
    private Long messageId;

    /** 提醒ID */
    @Excel(name = "提醒ID", cellType = ColumnType.NUMERIC)
    private Long reminderId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobilePhone;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 消息类型（0系统消息 1短信消息 2微信消息） */
    @Excel(name = "消息类型", readConverterExp = "0=系统消息,1=短信消息,2=微信消息")
    private String messageType;

    /** 发送时间 */
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /** 发送状态（0待发送 1已发送 2发送失败） */
    @Excel(name = "发送状态", readConverterExp = "0=待发送,1=已发送,2=发送失败")
    private String status;

    /** 失败原因 */
    @Excel(name = "失败原因")
    private String failReason;

    /** 重试次数 */
    @Excel(name = "重试次数", cellType = ColumnType.NUMERIC)
    private Integer retryCount;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setMessageId(Long messageId) 
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }
    
    public void setReminderId(Long reminderId) 
    {
        this.reminderId = reminderId;
    }

    public Long getReminderId() 
    {
        return reminderId;
    }
    
    public void setMobilePhone(String mobilePhone) 
    {
        this.mobilePhone = mobilePhone;
    }

    public String getMobilePhone() 
    {
        return mobilePhone;
    }
    
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    
    public void setMessageType(String messageType) 
    {
        this.messageType = messageType;
    }

    public String getMessageType() 
    {
        return messageType;
    }
    
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }
    
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    
    public void setFailReason(String failReason) 
    {
        this.failReason = failReason;
    }

    public String getFailReason() 
    {
        return failReason;
    }
    
    public void setRetryCount(Integer retryCount) 
    {
        this.retryCount = retryCount;
    }

    public Integer getRetryCount() 
    {
        return retryCount;
    }
    
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("reminderId", getReminderId())
            .append("mobilePhone", getMobilePhone())
            .append("userName", getUserName())
            .append("content", getContent())
            .append("messageType", getMessageType())
            .append("sendTime", getSendTime())
            .append("status", getStatus())
            .append("failReason", getFailReason())
            .append("retryCount", getRetryCount())
            .append("batchNo", getBatchNo())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 